﻿using GameFramework;
using GameFramework.Event;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine.UIElements;

namespace TowerDefence_Zombie
{
    public class HideEntityBeDamageEventArgs : GameEventArgs
    {
        public static readonly int EventId = typeof(HideEntityBeDamageEventArgs).GetHashCode();

        public int EntityId
        {
            get;
            private set;
        }


        public HideEntityBeDamageEventArgs()
        {
            EntityId = -1;
        }

        public override int Id
        {
            get
            {
                return EventId;
            }
        }

        public static HideEntityBeDamageEventArgs Create(int entityId)
        {
            HideEntityBeDamageEventArgs hideEntityBeDamageEventArgs = ReferencePool.Acquire<HideEntityBeDamageEventArgs>();
            hideEntityBeDamageEventArgs.EntityId = entityId;
            return hideEntityBeDamageEventArgs;
        }

        public override void Clear()
        {
            EntityId = -1;
        }

    }
}
